/*
 * @Author: your name
 * @Date: 2021-04-04 20:01:26
 * @LastEditTime: 2021-04-10 00:03:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \15_freertos_imx6ull\stdio\include\stdio.h
 */

#ifndef _STDIO_H
#define _STDIO_H

#include "types.h"

#if 1
#ifndef _VALIST
#define _VALIST
typedef char *vs_va_list;
#endif /* _VALIST */
#endif

extern int vsnprintf(char *buf, size_t size, const char *fmt, vs_va_list args);
extern int snprintf(char *buf, size_t size, const char *fmt, ...);
extern int vsprintf(char *buf, const char *fmt, vs_va_list args);
extern int sprintf(char *buf, const char *fmt, ...);
extern int vsscanf(const char *buf, const char *fmt, vs_va_list args);
extern int sscanf(const char *buf, const char *fmt, ...);

extern void putc(unsigned char c);
extern unsigned char getc(void);

int printf(const char *fmt, ...);
int scanf(const char *fmt, ...);

#endif /* _STDIO_H */
